//
//  TYZDefine.h
//  TYZ_SC
//
//  Created by 李贤立 on 2017/12/12.
//  Copyright © 2017年 Capfer. All rights reserved.
//

#ifndef TYZDefine_h
#define TYZDefine_h
#define WEAKSELF                           __weak typeof(self) weakSelf = self;
// 汉字的空格
#define ChineseSpaceBar                    @"　"
/// 主题颜色
#define ThemeColor                         BaseInfo.themeColor
/// 导航栏图片
#define NavigationImage                    BaseInfo.navigationImage
/// 全局的背景颜色
#define DE_GlobalBackgroundView            BaseInfo.globalBackgroundColor
/// 返回按钮的图片
#define DE_BackButtonImageNormal           BaseInfo.backButtonImageNameNormal
#define DE_BackButtonImageHighlighted      BaseInfo.backButtonImageNameHighlight
/// 屏幕的尺寸
#define DE_ScreenWidth  kWindowWidth
#define DE_ScreenHeight kWindowHeight
/// 导航栏文字颜色
#define DE_NavigationTextColor            [UIColor whiteColor]
/// 导航栏的高
#define DE_NavigationHeight               64
/// 导航栏设置的基本间距
#define DE_NavigationPadding              10
/// 导航栏按钮的宽高
#define DE_NavigationButtonSize           25
/// 导航栏标题的大小
#define DE_NavigationTitleFontSize        CoreInfo.fontSize * 1.2
/// 导航栏标题的最小字体
#define DE_NavigationTitleMinSizeMultiple 0.5

/// 首页文字颜色
#define Activity_Home_Text_Color     TYZSameColor(220)
#define Activity_Home_Text_FontSize  CoreInfo.fontSize
/// 背景颜色
#define ESTBackgroundColor           TYZColor(237, 242, 243)
/// 导航栏主题之外的颜色
#define NavigationColor              TYZColor(42, 136, 255)

// 字体大小
#define TYZFont(a)            [UIFont systemFontOfSize:a]

// 根据rgb获得颜色
#define TYZColor(r,g,b)       [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:1.0]
#define TYZSameColor(color)   TYZColor(color,color,color)
#define TYZRedColor           TYZColor(203, 65, 58)
#define TYZGrayColor          TYZSameColor(138)
#define TYZBlackColor         TYZSameColor(51)
#define TYZLineColor          TYZSameColor(215)
#define TYZFontColor          TYZBlackColor
#define TYZLightColor         TYZSameColor(102)
#define TYZLightMColor        TYZSameColor(153)
#define TYZLightMMColor       TYZSameColor(204)
#define TYZBlueColor          TYZColor(0, 140, 240)
#define TYZPurpleColor        TYZColor(208, 135, 210)
#define TYZYellowColor        TYZColor(251, 254, 9)
#define TYZOrangeColor        TYZColor(255, 105, 0)
#define TYZGreenColor         TYZColor(0, 216, 185)
#define TYZLightOrangeColor   TYZColor(254, 245, 214)
#define TYZWhiteColor         TYZColor(255, 255, 255)
#define TYZWrittenBGColor     TYZLightOrangeColor
#define TYZClearColor         [UIColor clearColor]
#define TYZDefaultColor       TYZColor(0x12, 0x96, 0xdb)
#define TYZRandomColor        TYZColor(arc4random_uniform(256),arc4random_uniform(256),arc4random_uniform(256))
#endif /* TYZDefine_h */
